import axios from 'axios'
import './request.js'

// 获废品价格（废品价格）
export const getWaste = function () {
  return axios.get('/content/waste/price')
}

// 添加废品
export const addWaste = function (params) {
  return axios.post('/添加废品')
}

// 修改废品
export const updateWaste = function (params) {
  return axios.put('/content/waste/adjust', params)
}

// 删除废品
export const deleteWaste = function (params) {
  return axios.delete('/废品')
}

// 获取废品价格
export const WastePrice = function (params) {
  return axios.get(`/content/historyPrice/${params}`)
}

// 修改废品价格
export const updateWastePrice = function (params) {
  return axios.put('/废品')
}
